ARM platforms: Include BL2U's RO section in total memory region
authorSandrine Bailleux <[email protected]>
Mon, 20 Jun 2016 09:10:40 +0000 (10:10 +0100)
committerSandrine Bailleux <[email protected]>
Fri, 8 Jul 2016 13:55:11 +0000 (14:55 +0100)
This patch changes the base address of the "total" Trusted SRAM region
seen by the BL2U image. It used to start just after BL2U's read-only
section (i.e. at address BL2U_RO_LIMIT), it now starts from the base
address of the BL2U image (i.e. at address BL2U_BASE). In other words,
the "total" memory region now includes BL2U's own read-only section.

This does not change BL2U's resulting memory mappings because the
read-only section was already mapped in BL2U, it just wasn't part of
this total memory region.

Change-Id: I2da16ac842469023b41904eaa8d13ed678d65671

plat/arm/common/arm_bl2u_setup.c

index 5f2634a2fe61e685c2da35eb0d9121da8761ac6f..8185f9f5174c598ab4a22c098776cfabdcfabedd 100644 (file)
@@ -102,7 +102,7 @@ void bl2u_early_platform_setup(meminfo_t *mem_layout, void *plat_info)
  ******************************************************************************/
 void arm_bl2u_plat_arch_setup(void)
 {
-       arm_setup_page_tables(BL2U_RO_LIMIT,
+       arm_setup_page_tables(BL2U_BASE,
                              BL31_LIMIT,
                              BL2U_RO_BASE,
                              BL2U_RO_LIMIT